package com.probox.common.entity.service.wechat;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;
import com.probox.wechat.api.domain.WechatBroadcastVo;
import com.probox.wechat.api.domain.WchatBroadcastVo;
import com.probox.common.entity.domain.wechat.broadcast.WechatBroadcast;
import com.probox.common.entity.domain.wechat.vo.ResponseWechatBroadcastVo;

/**
 * 小程序直播间Service接口
 *
 * @author usoft
 * @date 2021-07-26
 */
public interface IWchatBroadcastService extends IService<WechatBroadcast> {


    /**
     * 查询小程序直播间
     *
     * @param broadcastId 小程序直播间ID
     * @return 小程序直播间
     */
    public WechatBroadcast selectWchatBroadcastById(Long broadcastId);




    /**
     * 查询小程序直播间列表
     *
     * @param wechatBroadcast 小程序直播间
     * @return 小程序直播间集合
     */
    public List<WechatBroadcast> queryList(WechatBroadcast wechatBroadcast);


    /**
     * 新增小程序直播间
     *
     * @param wechatBroadcast 小程序直播间
     * @return 结果
     */
    public boolean insertWchatBroadcast(WechatBroadcast wechatBroadcast);

    /**
     * 修改小程序直播间
     *
     * @param wechatBroadcast 小程序直播间
     * @return 结果
     */
    public boolean updateWchatBroadcast(WechatBroadcast wechatBroadcast);

    /**
     * 批量删除小程序直播间
     *
     * @param broadcastIds 需要删除的小程序直播间ID
     * @return 结果
     */
    public boolean deleteWchatBroadcastByIds(Long[] broadcastIds);

    /**
     * 小程序获取直播间列表
     * @param name
     * @return
     */
    List<ResponseWechatBroadcastVo> getWchatBroadcast(String name);

    /**
     * 统计
     * @param name
     * @return
     */
    Integer getWchatBroadcastTotal(String name);


    /**
     * 获取当前当前商品直播间
     * @param product
     * @return
     */
    WchatBroadcastVo getBroadcast(String product);

    /**
     * 获取直播间Id
     * @param rooId
     * @return
     */
    public WechatBroadcastVo getBroadcastById(Long rooId,Long platformId);

}
